package com.example.crm.service.impl;

import com.example.crm.mapper.UserMapper;
import com.example.crm.mapper.impl.UserMapperImpl;
import com.example.crm.service.UserService;

import java.sql.SQLException;

public class UserServiceImpl implements UserService {

    /**
     * 用户登录验证
     */
    @Override
    public boolean login(String username, String password) throws SQLException {
        UserMapper userMapper = new UserMapperImpl();
        boolean result = userMapper.findByUsernamePassword(username, password);
        return result;
    }
}
